package com.ruizhong.centercontroll.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruizhong.centercontroll.entity.TSlider;

import javax.websocket.EncodeException;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface TSliderService extends IService<TSlider> {

    void saveNewSliderList(List<Map<String, Object>> sliderList, Integer pageId, boolean isNew);

    void deleteSlidersByPageId(Integer pageId);

    List<TSlider> getSlidersByPageId(Integer pageId, Double pageWidth, Double pageHeight, Double aimPageWidth, Double aimPageHeight, Boolean display) throws JsonProcessingException;

    void executeCommand(Map<String, Object> conditionMap, String ip) throws EncodeException, IOException;

    List<TSlider> getSliderIdsByPageId(Integer pageId);
}
